<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableRecipesLikesDislikes extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create( 'recipes_likes_dislikes', function( $table ){
			$table->increments( 'id' );
			$table->integer( 'user_id' );
			$table->integer( 'recipe_id' );
			$table->boolean( 'like' );	
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop( 'recipes_likes_dislikes' );
	}

}
